{sys, [
        {lib_dirs, ["../../"]},
        {erts, [{mod_cond, derived}, {app_file, strip}]},
        {app_file, strip},
        {rel, "cc", "3",
            [
                kernel,
                stdlib,
                sasl,
                crypto,
                inets,
                xmerl,
                compiler,
                os_mon,
                cc
            ]},
        {rel, "start_clean", "",
            [
                kernel,
                stdlib
            ]},
        {boot_rel, "cc"},
        {profile, embedded},
        {incl_cond, exclude},
        {excl_archive_filters, [".*"]}, %% Do not archive built libs
        {excl_sys_filters, ["^bin/.*", "^erts.*/bin/(dialyzer|typer)",
                "^erts.*/(doc|info|include|lib|man|src)"]},
        {excl_app_filters, ["\.svn", "\.gitignore"]},
        {app, sasl,   [{incl_cond, include}]},
        {app, crypto, [{incl_cond, include}]},
        {app, inets,  [{incl_cond, include}]},
        {app, xmerl,  [{incl_cond, include}]},
        {app, compiler, [{incl_cond, include}]},
        {app, os_mon, [{incl_cond, include}]},
        {app, stdlib, [{incl_cond, include}]},
        {app, kernel, [{incl_cond, include}]},
        {app, cc, [{incl_cond, include}]}
    ]}.

{target_dir, "cc"}.

{overlay, [
        {mkdir, "log"},
        {copy, "files/erl", "\{\{erts_vsn\}\}/bin/erl"},
        {copy, "files/nodetool", "\{\{erts_vsn\}\}/bin/nodetool"},
        {copy, "files/cc", "bin/cc"},
        {copy, "files/sys.config", "releases/\{\{rel_vsn\}\}/sys.config"},
        {copy, "files/vm.args", "releases/\{\{rel_vsn\}\}/vm.args"}
    ]}.

%%% vim: set foldmethod=marker filetype=erlang foldmarker=%%',%%.:
